package com.ld.poetry.aigc.iflycode.gclu.codecontinue;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class SecurityController {
    // 生成增加Security以及按securityID修改，查找和删除的接口

    @RequestMapping(value = "/security/add", method = RequestMethod.POST)
    public String addSecurity(){
        // 调用service层的方法，将数据插入到数据库中
        return "success";
    }

    @RequestMapping(value = "/security/update", method = RequestMethod.POST)
    public String updateSecurity(){
        // 调用service层的方法，将数据更新到数据库中
        return "success";
    }

    @RequestMapping(value = "/security/delete", method = RequestMethod.POST)
    public String deleteSecurity(){
        // 调用service层的方法，将数据从数据库中删除
        return "success";
    }

    @RequestMapping(value = "/security/select", method = RequestMethod.GET)
    public String selectSecurity(){
        // 调用service层的方法，将数据从数据库中查询出来
        return "success";
    }

    @RequestMapping(value = "/security/selectByPrice", method = RequestMethod.GET)
    public String selectSecurityByPrice(){
        // 调用service层的方法，将数据从数据库中查询出来
        return "success";
    }

    // 生成查询Security类tradingPrice最高的所有证券的接口，返回所有证券

    @RequestMapping(value = "/security/selectTop10", method = RequestMethod.GET)
    public String selectTop10Security(){
        // 调用service层的方法，将数据从数据库中查询出来
        return "success";
    }

}
